package com.example.demo.model;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Student {
    @Id
    private String id;
    private String name;
    private String age;
    public Student(){

    }
    public Student(String id,String name){
        this.name =name;
        this.id=id;
    }


    public String getId(){
        return id;

    }
    public String getAge(){
        return age;
    }
    public void setName(String name){this.name=name;}
    public void setId(String id){
        this.id=id;
    }
    public String getName(){
        return name;
    }
    public void setAge(String age){
        this.age=age;
    }
}
